#!/bin/bash
cd /app/server-side
pm2 delete all
sleep 1
pm2 start dbserv.js --node-args="--max-old-space-size=1024"
sleep 1
pm2 start gate.js --node-args="--max-old-space-size=1024"
sleep 1
pm2 start game.js --node-args="--max-old-space-size=3024"
sleep 1
pm2 start game2.js --node-args="--max-old-space-size=3024"
sleep 1
pm2 start game3.js --node-args="--max-old-space-size=3024"
sleep 1
pm2 start game4.js --node-args="--max-old-space-size=3024"


while true
do
    sleep 10
    echo "sleep"
    tail -f /app/server-side/logs/*.log
done

